package com.his.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @BelongsProject: workspace-idea
 * @BelongsPackage: com.his.dto
 * @Author: ZhangYing
 * @Date: 2023/7/3 10:18
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DrugCharge {
    private int id;
    private String drugName; //药品名称
    private double drugPrice; //药品单价
    private String drugType; //药品类型
    private String drugFormat;//药品规格
    private Integer drugNumber;//数量
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") //日期格式转换对象 2023-06-29 14:24:28
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime creationTime;//开立时间
    private String drugState;//状态(已开立、已缴费、已发药、已退药、已退费)

}
